package com.wl.mbw2.controller;

import com.wl.mbw2.configure.Configure;
import javafx.application.Application;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Import;

/**
 * @author wl
 * @version 1.0
 * @date 2022/6/13
 * @description:
 */
//import 是将该类中的数据引入到当前类中来 ,相当于 复制 粘贴
@Import(Configure.class)
public class Test {


    public static void main(String[] args) {
        //AnnotationConfigApplicationContext就是获得注解配置
        ApplicationContext aop=new AnnotationConfigApplicationContext(Test.class);
        System.out.println(aop.getBean("user"));
    }
}
